OPENQASM 2.0;
include "qelib1.inc";
qreg q2[2];
qreg q3[2];
qreg mul[2];
qreg an[2];
x q2[1];
x q3[0];
ccx q3[0],q2[0],an[0];
ccx q3[1],q2[0],an[0];
ccx mul[0],an[0],mul[1];
cx an[0],mul[0];
cx an[1],mul[1];
ccx q3[1],q2[0],an[0];
ccx q3[0],q2[0],an[0];
ccx q3[0],q2[1],an[1];
ccx mul[0],an[0],mul[1];
cx an[0],mul[0];
cx an[1],mul[1];
ccx q3[0],q2[1],an[1];
